﻿using Authentication.Configuration;
using Authentication.Model.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Data.DBConfig
{

    public class ApplicationConfiguration : EntityTypeConfiguration<Application>
    {
        public ApplicationConfiguration()
        {
            ToTable("Application", SystemConfiguration.Schema);
            HasKey(k => k.ApplicationKey);
            Property(c => c.ApplicationName).HasMaxLength(250).IsRequired();
        }
    }
}
